<body>This code is imported from the OpenDMTP reference implementation. There are some
minor modifications</body>